package com.kern.academic.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 *  权限实体
 * Created by caoshi at 7:38 2021-07-13
 */
@Data
@Entity
@Table(name = "t_rights")
public class XRights implements Serializable {


    private static final long serialVersionUID = 3179577947851821891L;
    /**
     * Id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 权限名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 权限描述
     */
    @Column(name = "desc")
    private String desc;

    /**
     * 权限等级
     */
    @Column(name = "level")
    private int level;


    /**
     *  权限代码
     */
    @Column(name = "code")
    private String code;

    /**
     * 所属权限组Id
     */
    @Column(name = "group_id")
    private String groupId;

}
